class NoAvailableRoomTimeException(Exception):
    """自定义异常类，表示没有可选的教室"""

    def __init__(self, message="没有可选的教室"):
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f"NoAvailableClassroomException: {self.message}"

class StudentTimeException(Exception):
    """自定义异常类，表示学生冲突"""

    def __init__(self, message="学生冲突"):
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f"StudentTimeException: {self.message}"

class TeacherTimeException(Exception):
    """自定义异常类，表示教师冲突"""

    def __init__(self, message="教师冲突"):
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f"TeacherTimeException: {self.message}"

class RoomTimeException(Exception):
    """自定义异常类，表示教室冲突"""

    def __init__(self, message="教室冲突"):
        self.message = message
        super().__init__(self.message)

    def __str__(self):
        return f"RoomTimeException: {self.message}"